package com.vhr.service;

import com.vhr.VO.EmpVO;
import com.vhr.VO.LeaderVO;
import com.vhr.VO.TrainVO;
import com.vhr.entities.Employee;
import com.vhr.entities.Train;
import com.vhr.form.TrainForm;

import java.text.ParseException;
import java.util.List;

public interface ITrainService {

    //根据员工主键查询所属培训班的
    List<TrainVO> selectByEmployee(Employee emp);
    //根据培训班主键查询出该培训班员工(train里面有emplyee的list集合)
    List<Employee> selectByPrimaryKey(Train train);
    //根据培训班其他条件查询
    List<TrainVO> selectByExample (Train train);
    //添加一个培训班
    int insertTrain(TrainForm trainForm);
    //根据培训班主键更新培训班
    int updateTrainByPrimaryKey(Train train);
    //添加员工到培训班中
    int insertEmployee(List<Integer> empId,Integer trainId);
    //在培训班中删除某个员工
    int deleteEmployee(List<Integer> empId, Integer trainId);
    //查看所有培训课程信息
    List<TrainVO> selectAll();
    //删除培训课程
    int deleteTrain(Integer trainId);
    //根据主键查询培训课程
    TrainForm selectByPrimary(Integer trainId);
    //根据培训课程的培训内容、培训时间进行模糊查询
    List<TrainVO> selectByContentOrTime(String trainContent,String trainTime);
    //获取10个负责人
    List<LeaderVO> getLeaders();
    //列举员工带有状态码(0在培训课程，1不在)
    List<EmpVO> listAllEmpByStatus(Integer trainId);
    //编辑培训课程内员工
    int editTrainEmp(List<Integer> empId,Integer trainId);
    //根据领导名字改变train的leaderId
    int changeLeaderIdByEmpName(TrainForm trainForm);

}
